Skip to content

Conversation

DanielEScherzer
Copy link
Contributor

The first time the method is called, a string is built up with |-separated extra types, then split based on |s, the resulting array is filtered to exclude non-empty strings, and that array is finally passed to PhpFileCleaner::setTypeConfig(). Given that the array only has at most a single entry, just set the array directly.

The first time the method is called, a string is built up with `|`-separated
extra types, then split based on `|`s, the resulting array is filtered to
exclude non-empty strings, and that array is finally passed to
`PhpFileCleaner::setTypeConfig()`. Given that the array only has at most a
single entry, just set the array directly.
@Seldaek Seldaek merged commit ba9f089 into composer:main Aug 20, 2025
@Seldaek
Copy link
Member

Seldaek commented Aug 20, 2025

Makes sense thanks

@DanielEScherzer DanielEScherzer deleted the patch-1 branch August 21, 2025 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants